package net.vkits.common.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * Created by ethan-liu on 2016/11/29.
 */

@ApiModel(description = "基础DTO")
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.SpringCodegen", date = "2016-10-27T05:49:23.577Z")

public class BaseDTO {
    private int code = 200;
    private String msg = "OK";

    public void setCode(int code) {
        this.code = code;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    @ApiModelProperty(value = "code")
    public int getCode() {
        return code;
    }

    @ApiModelProperty(value = "message")
    public String getMsg() {
        return msg;
    }

    public BaseDTO code(int code) {
        this.code = code;
        return this;
    }

    public BaseDTO msg(String msg) {
        this.msg = msg;
        return this;
    }

    public BaseDTO(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public BaseDTO(int code) {
        this.code = code;
    }

    public BaseDTO() {
    }
}
